<template>
	<view class="homePage">
		<u-button type="primary" icon="map" text="图标按钮"></u-button>
			<u-button type="primary" text="确定"></u-button>
	</view>
</template>

<script>
	// import {
	// 	getHomeData
	// } from '@/api/home';

	export default {
		data() {
			return {}
		},
		onLoad() {
			this.$store.commit('user/SET_TOKEN', '1111111111')
			console.log(this.$store.getters.token, "token")
			this.getHomeDatas();
			// console.log(uni.$u.config.v);
		},
		methods: {
			async getHomeDatas() {
				const data = {
					action: {},
					page: 1,
					pageSize: 5
				}
				getHomeData(data).then(res => {
					console.log(res)
				})
			}
		}
	}
</script>
<style lang="scss" scoped>

</style>
